package cn.stylefeng.guns.modular.business.custom.enums;

public enum ExtraFeeScene {

    NORMAL(0, ""),
    PICK(1, "提车"),
    TAKE(2, "送车"),
    SIGN(3, "签收"),
    FINISH(4, "交付"),
    FINANCE(5, "财务"),
    OTHER(6, "其他")
    ;

    public int type;
    public String desc;

    ExtraFeeScene(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getValue(Integer type) {
        if (type == null) {
            return "";
        }
        ExtraFeeScene[] pts = ExtraFeeScene.values();
        for (ExtraFeeScene pt : pts) {
            if (type == pt.type) {
                return pt.desc;
            }
        }
        return "";
    }
}
